import request from '@/utils/request'

// 查询到货单明细列表
export function listArriveInfoitem(query) {
  return request({
    url: '/inv/ArriveInfoitem/list',
    method: 'get',
    params: query
  })
}

// 查询到货单明细详细
export function getArriveInfoitem(id) {
  return request({
    url: '/inv/ArriveInfoitem/' + id,
    method: 'get'
  })
}

// 新增到货单明细
export function addArriveInfoitem(data) {
  return request({
    url: '/inv/ArriveInfoitem',
    method: 'post',
    data: data
  })
}

// 修改到货单明细
export function updateArriveInfoitem(data) {
  return request({
    url: '/inv/ArriveInfoitem',
    method: 'put',
    data: data
  })
}

// 删除到货单明细
export function delArriveInfoitem(id) {
  return request({
    url: '/inv/ArriveInfoitem/' + id,
    method: 'delete'
  })
}

// 新增到货单明细
export function insertInvArriveInfoItem(data) {
  return request({
    url: '/inv/ArriveInfoitem/insertInvArriveInfoItem',
    method: 'post',
    data: data
  })
}

// 查询到货单明细列表
export function searchList(query) {
  return request({
    url: '/inv/ArriveInfoitem/searchList',
    method: 'get',
    params: query
  })
}

// 查询入库明细列表
export function searchInList(query) {
  return request({
    url: '/inv/ArriveInfoitem/searchInList',
    method: 'get',
    params: query
  })
}
